#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/9/16 16:16
# @Author : 吴敬超
# explain:

from collections import defaultdict, OrderedDict
import json

video = defaultdict(list)
video["label"].append("haha")
video["data"].append(234)
video["score"].append(0.3)
video["data"].append(123)
video["score"].append(0.7)

# test_dict = {
#     'version': "1.0",
#     'results': video,
#     'explain': {
#         'used': True,
#         'details': "this is for josn test",
#   }
# }
#
# json_str = json.dumps(test_dict, indent=4)
# with open('test_data.json', 'w') as json_file:
#     json_file.write(json_str)
#


json_str = json.dumps(video)
with open('videotest_datan.json', 'w') as json_file:
    json_file.write(json_str)
#
# def jsscore(video):
#     video["score"].append(0.3)
#     video["score"].append(0.7)
#     return
#
#
# def jslabel(video):
#     video["label"].append("xixi")
#
#
#
# def wj(tn):
#     video = defaultdict(list)
#
#
#
#
#
# if __name__ == "__main__":
#     # print("main")
#
#
#     print "888888888888888"
#
#

